package tech.moya.flexbase.beans
{
	public class Table
	{
		private var tableName:String;
		private var tableColumns:Array;
		
		public function toString():String{
			return tableName;
		}
		
		public function Table(tableName:String,tableColumns:Array)
		{
			this.tableName = tableName;
			this.tableColumns = tableColumns;
		}
		
		
		public function get Name():String{
			return tableName;
		} 
		
		public function get Columns():Array{
			
			return tableColumns.slice(0,tableColumns.length);
		}
		
		public function getColumnAt(index:int):Column{
			return Column(tableColumns[index]);
		}
		
		
		

	}
}